/**
 * Created by HUANG on 2016/1/21.
 */
'use strict';
angular.module('nec-admin.student')
    .controller('studentController', ['$scope', '$state', 'studentService','sweetAlert','toast','userService',
        function ($scope, $state ,studentService,sweetAlert,toast,userService) {
            studentService.searchScore(userService.getUserId()).then(function(resp){
                console.log(resp);
                $scope.stuName = resp.data.stuName;
                $scope.scores = resp.data.stuVsSbjList;
            },function(){
                toast.error('获取成绩失败');
            });
        }]);
